<body>
<script>
if (self==top) window.open("?op=core&fp=logout","_top");
</script>

<table border="0" cellpadding="2" cellspacing="1" width="95%" class=table0>
<tr>
  <td class=td0>{betname} 下注单</td>
<tr>
  <td class=td2>
	<table border="0" cellpadding="2" cellspacing="0" width="100%">
	<tr>
	  <td>{{L_ACCOUNT}}</td>
	  <td align="right">{account}</td>
	</tr>
	<tr>
	  <td>额度：</td>
	  <td align="right">{amount}</td>
	</tr>
	<tr>
	  <td>已用额度：</td>
	  <td align="right">{usedamount}</td>
	</tr>
	<tr>
	  <td>下注期数：</td>
	  <td align="right">{round}</td>
	</tr>
	<tr>
	  <td>开奖日期：</td>
	  <td align="right">{open}</td>
	</tr>
	</table>

	<hr><center>
	{betcontent}

	<form name="f" id="f" action="{action}" method="post" onSubmit="return chk(this)">
	<input type="hidden" name="rates" value="{rates}">
	<input type="hidden" name="type" value="{type}">
	{betforms}
	<table border=0>
	{message}
	<tr>
    <td>盘类：</td>	                                                           
    <td  align="right" style="color:#006400;font-weight: bold;">{diskStr}</td>	                                                   
  </tr>
	<tr>
	  <td>下注金额：
	  <td ><input name="money" size=10 maxlength=8 value="{money}"
      	onkeypress="return KeyNumber()" 
      	onkeyup="calculate();//nmoney.innerText=n2c(this.value);">
	<tr>
	  <td>可赢金额：
	  <td id="payoff" style="color:red" align="right">0</td>
	</tr>
	<tr>
	  <td>最低限额：</td>
	  <td align="right"><b>{min}</b></td>
	</tr>
	<tr>
	  <td>单注限额：</td>
	  <td align="right"><b>{amount1_str}</b></td>
	</tr>
	<tr>
	  <td>下注限额：</td>
	  <td align="right"><b>{amount2_str}</b></td>
	</tr>
	<tr>
	  <td colspan=2 align=center>
	    <input type=button name=cancel value="取消" onClick="location.replace('op.php?op=member&fp=account')">
	    <input type=submit name=submit value="确定">
	</tr>

	</table>
	</form>
	</p></center>
<tr>
  <td align=center class=td0>
    {{L_REFRESHSEC}}<span id=pclock></span>
</table>

<script>
function chk(f)
{
    f.submit.disabled = true;
    f.cancel.disabled = true;
	if (f.money.value=="") {
		alert("请输入下注金额！");
		f.money.focus();
        f.submit.disabled = false;
        f.cancel.disabled = false;
		return false;
	}
	if (!confirm("是否确定下注？")) {
	    f.submit.disabled = false;
        f.cancel.disabled = false;
		return false;
	}
}

function calculate()
{
	if (f.money.value=="") {
		f.money.focus();
	} else {
		var money = parseFloat(f.money.value);
		//document.all.allmoney.innerHTML = money * parseInt(document.all.nc.innerHTML);//不需要计算
		var payoff = money * (document.all.rate.innerHTML - 1);
		document.all.payoff.innerHTML = Math.round(payoff);
	}
}

function canceldeliver()
{
	location.replace("?op=member&fp=account");
}

var RSecond=35;
RClockRate();

f.money.focus();
</script>